﻿using System;
using System.Collections.Generic;

namespace Pixels 
{

    class Program {

        static void Main(string[] args) {
            var loader = new Loader();

            loader.Complete += delegate {

                GlobalConsts.initializeAll();
                var g = new Logic.Generators.WorldGenerator();
                Logic.World.Map = g.generateRandomMap(100, 20, 20);


                new GameLoop(); // basic loop
                var wr = new Rendering.WorldRenderer();
                wr.camera.coords = wr.camera.target = new Ur.crds2(0.5f * Logic.World.Map.Width, 0.5f * Logic.World.Map.Height);
            };

            Sargon.Game.run("Pixels", 1280, 720, false);
        }

    }


}
